<? $system_part="gbook"; ?>
<?php include "front/".$theme_folder."/connection.php"; ?>
<?php include_once ("front/coresection/function.php");?>
<?php include "front/".$theme_folder."/config.php" ;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Window-target" content="_top" />
    <meta name="revisit-after" content="1 days">
    <?php include 'front/'.$theme_folder.'/modules/head.php'; ?>
</head>

<body class="gbook_body detail_body">



<!--container start-->
<div id="container" class="container">

    <!--main start-->
    <div id="maincontent" class="maincontent">


        <div class="gbook-add-box detail-list-box ">

           <h2>我要卖车</h2>


            <div class="gbook-add-content">
                <p class="content">您有更好的建议或者反馈吗？留下您想说的，我们会尽快答复与改善。</p>

                <ul>
                    <form id="detail_form" method="post" action="" autocomplete="off" enctype="multipart/form-data" name="uploadfile" onsubmit="return validate_form(this);" >
                        <li><label>姓名：</label><input type="text" name="detail_name" value="<? echo $_REQUEST['detail_name'] ?>"></li>
<!--                        <li><label>联系电话</label><input type="text" name="detail_phone" value="<?/* echo $_REQUEST['detail_phone'] */?>"></li>
-->                        <li><label>联系方式：</label><input id="emeil" type="text" name="detail_email" value="<? echo $_REQUEST['detail_email'] ?>"></li>
                        <li><label>车况描述：</label><textarea name="detail_introduce" cols="20"><? echo $_REQUEST['detail_introduce'] ?></textarea></li>

                        <?php
                        session_start();// 必须有此方法才能验证
                        ?>
                        <input type="hidden" name="user_nid" value="<?php echo $_SESSION['usernid_web'];?>"/>

                        <li class="check_code">
                            <label>验证码：</label><input type="name" name="code" class="input_imgcode"><img src="application/verify/z_imgcode.php" onclick='this.src="application/verify/z_imgcode.php?"+Math.random();' class="img_imgcode">
                            <div class="clearfloat"></div>
                        </li>

                        <?php
                        if(isset($_REQUEST['code'])){
                            if($_REQUEST['code'] == strtolower($_SESSION['yzm'])){
                                echo "
                                        <script type='text/javascript'>
                                        document.getElementById('detail_form').action = 'front/coresection/gbook/add-function.php';
                                        document.getElementById('detail_form').submit();
                                        </script>";
                            }else{
                                echo '<script type="text/javascript"> alert("请输入正确的验证码！");</script>';
                            }
                        }
                        ?>
                        <li class="detail-boxing-function">
                            <input type="submit" class="btn_sure"  value="确认提交"  />
                        </li>
                    </form>
                </ul>

        </div>

    </div>
    <!--main end-->
</div>
<!--container end-->

<!--footer start-->
<div class="footer"><?php include 'front/'.$theme_folder.'/modules/footer.php'; ?></div>
<!--footer end-->


</body>
</html>
